package com.ljfresh.customer.exception;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: Lucifer
 * @time: 2020/4/6-8:57
 */
public class ErrorMap {
    public static Map<Integer,String> map = new HashMap<>();

    static {
        /*
         * 前两位定义模块 1、用户 2、门店
         * 第三位是定义HTTP请求类型
         * 最后三位定义模块下面的序号
         * */
        map.put(005001,"ERP账号未登录");
        //1、用户
        map.put(105001,"请输入正确姓名~");
        map.put(105002,"请输入正确手机号~");
        map.put(105003,"输入密码有误，请重新输入~");
        map.put(105004,"参数为空");
        map.put(105005,"登录失败");
        map.put(105006,"用户未登录");
        map.put(105007,"请选择登录门店");

        //2、门店
        map.put(202001,"暂无门店");
        map.put(205002,"查询门店失败");
        map.put(205003,"加载编辑页面失败");

        //3、工单
        map.put(305001,"提交工单失败");
        map.put(305002,"udesk端查询失败");
        map.put(305003,"部分上传文件过大");
        map.put(305004,"后台异常");
        map.put(302002,"UDesk调用子域名无效");
        map.put(302005,"没有找到该资源(content未能匹配数据)");
        //map.put(2000,"UDesk未知错误");
        map.put(305005,"参数{page_size}不在取值范围内");
        map.put(305006,"参数{page}不在取值范围内");
        map.put(305007,"上传附件失败:超过20M");



        //4、异常商品
        map.put(402001,"没有调入单");
        map.put(402002,"没有ERP商品");
        map.put(405003,"参数错误");
        map.put(402004,"查询ERP商品失败");
        map.put(402005,"查询调入单商品失败");
        map.put(402006,"查询调入单商品为空");


        //3、客户
        /*map.put(305001,"提交工单失败");
        map.put(305002,"udesk端查询失败");
        map.put(2002,"UDesk调用子域名无效");
        map.put(2005,"没有找到该资源(content未能匹配数据)");
        map.put(2000,"UDesk未知错误");
        map.put(206211,"参数{page_size}不在取值范围内");
        map.put(206201,"参数{page}不在取值范围内");*/

        //3、UDesk
        map.put(1000,"请求成功");
        map.put(2000,"UDesk请求失败");


    }
}
